const Router=require('koa-router')
const router=new Router({prefix:'/users'})

//导入
const {getList} =require("../controller/shoucang")
const {getdoctorList}=require('../controller/doctorlist')
const {gethotList}=require('../controller/hotlist')
const {getallList}=require('../controller/alldata')
const {docdetailList}=require('../controller/doctordetail')

//定义接口
router.get('/shoucang',getList)
router.get('/doctorlist',getdoctorList)
router.get('/hotdata',gethotList)
router.get('/alldata',getallList)
router.get('/docdetaillist',docdetailList)
module.exports=router.routes()